package com.jingdianjichi.subject.application.convert;

import com.jingdianjichi.subject.application.dto.SubjectCategoryDTO;
import com.jingdianjichi.subject.application.dto.SubjectLabelDTO;
import com.jingdianjichi.subject.application.dto.SubjectMappingDTO;
import com.jingdianjichi.subject.domain.entity.SubjectCategoryBO;
import com.jingdianjichi.subject.domain.entity.SubjectLabelBO;
import com.jingdianjichi.subject.domain.entity.SubjectMappingBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 标签dto的转换
 */
@Mapper
public interface SubjectLabelDTOConvert {
        SubjectLabelDTOConvert INSTANCE = Mappers.getMapper(SubjectLabelDTOConvert.class);
        SubjectLabelBO  convertBoToCategory(SubjectLabelDTO subjectLabelDTO);
        List<SubjectLabelDTO> convertBoToCategoryDTOList(List<SubjectLabelBO> subjectLabelToBOList);
        SubjectLabelBO convertLabelDTOToBo(SubjectLabelDTO subjectLabelDTO);
        SubjectMappingBO convertMappingDTOToBo(SubjectMappingDTO subjectMappingDTO);
        List<SubjectMappingDTO> convertBoToMappingDTOList(List<SubjectMappingBO> subjectMappingToBOList);

}
